package com.youjia.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class ProductOrder extends BasePojo{
    private Integer orderId; //订单id
    private Integer userId;  //用户id
    private Integer productId; //商品ID
    private Double payment; //支付金额
    private Integer ispayment;  //是否支付
    private String orderAdd; //收货地址
    private Integer status; //状态
    private Integer id; //订单商品ID
    private String productImg; //商品图片
    private String productName; //商品标题
    private Integer num; //商品数量
    private Integer numall; //商品总数
    private Double price; //单价
    private Boolean check; //是否全选
    @TableField(exist = false)
    private  List<ProductOrder> productList; //封装商品信息
    /*
     @TableId(type =IdType.AUTO)
    private String outTradeNo; //订单号,支付用
    private String details; //订单描述详情
    private Integer dsCost; //挂号费用
    private Integer mdPrice; //药物费用
    private Integer totalAmount; //订单总金额
    private Boolean orderFinish; //是否支付完成 默认否 false
    private String orderName;  //支付人员
    check: true
    id: 1
    num: 1
    numall: 10
    payment: 4444
    price: 1111
    productId: 1
    productImg: ""
    productName: "大蒜"
    userId: 13*/
}
